﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace iopt.solvency.pillarone.core
{
    public class SampleComponent : IComponent
    {
        public IInputArgument<double> TimeSpan { get; set; }
        public IOutputArgument<DateTime> FinalTime { get; set; } 

        public void Execute(IComputeContext ComputeContext, IDataContext DataContext)
        {
            this.FinalTime.Set(
                System.DateTime.Now + 
                System.TimeSpan.FromMilliseconds(this.TimeSpan.Get()));
        }

       

    }
}
